package com.guslegend.service;

import com.guslegend.enums.SendCodeEnum;
import com.guslegend.util.JsonData;

/**
 * @author: guslegend
 * @description: 邮件发送
 * @create: 2025-05-26 07:45
 **/
public interface NotifyService {
    /**
     * 发送验证码
     * @param sendCodeEnum
     * @param to
     * @return
     */
    JsonData sendCode(SendCodeEnum sendCodeEnum, String to);

    /**
     * 验证验证码
     * @param sendCodeEnum
     * @param to
     * @param code
     * @return
     */
    boolean checkCode(SendCodeEnum sendCodeEnum, String to, String code);


}
